<template>
  <el-menu :default-active="activeIndex" :router="true" class="el-menu-demo" mode="horizontal" @select="handleSelect">
    <el-menu-item index="/task">任务</el-menu-item>
    <el-menu-item index="/demand">需求</el-menu-item>    
    <el-menu-item index="/bug" >BUG</el-menu-item>
    <el-menu-item index="/milepost" >里程碑</el-menu-item>
  </el-menu>
</template>

<script>
export default {
  name: 'header',
  props: {
    activeIndex: String
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h3 {
  margin: 40px 0 0;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
